package com.atguigu.eduservice.client;

import com.atguigu.eduservice.client.hystrix.MemeberHystrix;
import com.atguigu.entity.UcenterMember;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author cyt
 * @create 2020-06-01 15:05
 */

@FeignClient(name = "service-ucenter", fallback = MemeberHystrix.class)
@Component
public interface MemeberClient {
    @GetMapping("/ucenterservice/apimember/getInfoUc/{id}")
    public UcenterMember getUserInfo(@PathVariable("id") String id);
}
